﻿
using System;

namespace IntegratedOnBordDebug
{
    [Serializable]
    public class InfoEnumClass
    {
        #region 全局
        /// <summary>
        /// 系统类型
        /// 0:管理中心;1:停车收费;2:车位引导;3:反向寻车;
        /// </summary>
        public enum EmAppType
        {
            MC = 0,
            PC = 1,
            PG = 2,
            PS = 3,
        }
        #endregion

        #region 车位引导

        #region 车位引导变量
        public enum EmCommandID
        {
            CMD_BASIC_ACTIVEREPORT = 0x0001,                //主动上报
            CMD_BASIC_SEARCHDEVICE = 0x0002,                //设备搜索
            CMD_BASIC_UDPMODIFYIP = 0x0003,                //广播修改IP
            CMD_BASIC_LOGINDEVICE = 0x0004,                //登陆设备
            CMD_BASIC_HEARTBEAT = 0x0005,                //心跳
            CMD_BASIC_REBOOT = 0x0006,                //重启
            CMD_BASIC_RECOVERY = 0x0007,                //恢复出厂设置
            CMD_BASIC_UPGRADE = 0x0008,                //设备升级
            CMD_BASIC_DEVICESTATE = 0x0009,                //获取设备运行状态
            CMD_BASIC_GET_SYSTEM = 0x000a,                //获取设备基本信息
            CMD_BASIC_SET_SYSTEM = 0x000b,                //设置设备基本信息

            CMD_BASIC_GET_NETWORK = 0x000c,                //获取设备网络信息
            CMD_BASIC_SET_NETWORK = 0x000d,                //设置设备网络信息
            CMD_BASIC_GET_TIME = 0x000e,                //获取设备时间
            CMD_BASIC_SET_TIME = 0x000f,                //设置设备时间
            CMD_BASIC_GET_SERIAL485 = 0x0010,                //获取485串口信息
            CMD_BASIC_SET_SERIAL485 = 0x0011,                //设置485串口信息

            CMD_UPDATE_PARK_INFO = 0x6001,              //车位信息更新        
            CMD_ADD_LED_DEVICE = 0x6002,             //增加LED显示屏 
            CMD_DEL_LED_DEVICE = 0x6003,            //删除LED显示屏
            CMD_SET_LED_DEVICE = 0x6004,           //LED屏配置
            CMD_SET_PARK_FOR_LED = 0x6005,          //LED屏车位管理
            CMD_SET_NODE_IP = 0x6006,         //修改设备节点IP        
            CMD_SET_NODE_PARK_NUM = 0x6007,        //修改设备管理车位数
            CMD_UPDATE_PARK_NUM = 0x6008,         //车位总数更新
            CMD_ADD_DEVICE_NODE = 0x6009,       //增加设备节点
            CMD_DEL_DEVICE_NODE = 0x6010,      //删除设备节点
            CMD_UPDATE_DEVICE_NODE_STATUS = 0x6011,         //更新设备节点状态
            CMD_GET_DEVICE_NODE_LIST = 0x6012,    //获取设备节点列表
            CMD_GET_DEVICE_NODE_INFO = 0x6013,   //获取设备节点信息
            CMD_GET_DEVICE_NODE_PARKLIST = 0x6014,  //获取设备节点管理的车位列表
            CMD_GET_PARK_INFO = 0x6015,            //获取车位信息
            CMD_GET_LED_LIST = 0x6016,        //获取LED引导屏列表
            CMD_GET_LED_INFO = 0x6017,        //获取LED引导屏信息
            CMD_GET_LED_PARKLIST = 0x6018,            //获取LED管理的车位
            CMD_GET_LED_PARKNUM = 0x6023,            //获取LED管理的车位数
            CMD_OPERATE_LED = 0x6024,            //添加、删除LED管理的车位
            CMD_SET_PARK_INFO = 0x6019,//车位禁用
            CMD_ANALYSIS_SET_CPRINFO = 0x012d,                 //获取车牌配置信息
            CMD_ANALYSIS_GET_CPRINFO = 0x012e,                   //设置车牌配置信息
            CMD_ANALYSIS_VIDEO_SELECT = 0x0131,              //视频通道切换
            CMD_ANALYSIS_SET_IMAGE_VALUE = 0x0138,         //设置图像参数
            CMD_ANALYSIS_GET_IMAGE_VALUE = 0x0139,         //获取图像参数
            CMD_ANALYSIS_RESET_IMAGE = 0x013a,         //图像参数恢复默认
            CMD_ANALYSIS_GET_CHANNEL_LIST = 0x013c,         //获取通道参数
            CMD_ANALYSIS_SET_CHANNEL_LIST = 0x013d,         //设置通道参数
            CMD_ANALYSIS_GET_ENCODE_CONFIG = 0x013e,         //获取编码参数
            CMD_ANALYSIS_SET_ENCODE_CONFIG = 0x013f,          //设置编码参数 
            CMD_SET_LED_INFO = 0x0033,                        //设置LED显示信息 
            CMD_GET_LEDPARK_INFO = 0x0141,                     //获取车位灯信息
            CMD_ANALYSIS_PARKLED_CHECK = 0x0142,            //车位控制灯检测
            CMD_ANALYSIS_VIDEO_SNAP = 0x0140,               //抓拍
            CMD_ANALYSIS_VIDEO_LIGHT = 0x500a,                //设置射灯
            CMD_ANALYSIS_DTF = 0x0135,                           //故障定位
            CMD_PARK_SET_LED = 0x0033,                //设置LED信息        
            CMD_PARK_SET_VOICEBROADCAST = 0x0034,                //设置语音播报信息 
            CMD_PARK_SET_BRAKE = 0x0035,                //设置闸杆动作
            CMD_PARK_SET_LEDSWITCH = 0x0036,              //设置LED显示屏开关
            CMD_PARK_SET_EXTRA_LIGHT = 0x0037,          //设置补光灯开启和关闭时间
            CMD_PARK_GET_EXTRA_LIGHT = 0x0038,          //查询补光灯开启和关闭时间
            CMD_PARK_SET_CHARSLIB = 0x0040,             //字库下载命令
            CMD_PARK_SET_PROGRAM_DOWNLOAD = 0x0041,     //远程程序下载命令
            CMD_PARK_SET_PROGRAM_UPDATE = 0x0042,       //远程程序更新命令
            CMD_PARK_SET_GUID_LED = 0X0043,              //车位引导数据转发            
            CMD_PARK_R_AUTHORCODE = 0x0050,     //收到扫码信息
            CMD_PARK_R_HELP = 0x0051,           //接收帮助请求
            CMD_PARK_T_HELP = 0x0052,           //确认帮助请求
            CMD_PARK_RESET_SCANNER = 0x0053,    //重启扫码设备
            CMD_PARK_SET_SUBSCRIBE = 0x0061,     //扩展设备（条码、帮助按钮）消息订阅

            /// <summary>
            /// 显示一体机读IC卡上报指令
            /// </summary>
            CMD_PARK_READ_RFID = 0x0071
        }
        #endregion

        /// <summary>
        /// 设备类型
        /// 1-中央控制器，2-超声波节点控制器 32车位，3-视频节点控制器 标清 16车位，4-视频节点控制器 数字高清 32车位
        /// 5-视频节点控制器 网络高清 32车位，6-车位探测 超声波类,7-车位探测 视频类,8-车位指示灯,9-剩余车位显示屏,10-车位引导屏
        /// </summary>
        public enum EmDeviceType
        {
            中央控制器 = 1,
            超声波节点控制器 = 2,
            视频节点控制器标清 = 3,
            视频节点控制器数字高清 = 4,
            视频节点控制器网络高清 = 5,
            车位探测超声波 = 6,
            车位探测视频 = 7,
            车位指示灯 = 8,
            剩余车位显示屏 = 9,
            车位引导屏 = 10,
            车位预定屏 = 11,
            收费控制器 = 12,
            数字视频车位探测器2车位 = 13,
            数字视频车位探测器3车位 = 14,
            车位计数器 = 15,
            显示控制一体机 = 16,
        }

        /// <summary>
        /// DHCP开关  0-关 1-开
        /// </summary>
        public enum EmDhcp
        {
            OFF = 0,
            ON = 1
        }

        /// <summary>
        /// 节点在线状态 0-离线 1-在线
        /// </summary>
        public enum EmNodeStatus
        {
            OffLine = 0,
            OnLine = 1
        }

        /// <summary>
        /// 车位类型 0:临时车位 1：固定车位 2：预定车位 3：专用车位
        /// </summary>
        public enum EmParkLotType
        {
            TempParkLot = 0,
            FixedParkLot = 1,
            Reservation = 2,
            ReservedParking = 3
        }

        /// <summary>
        /// 车牌颜色 0:浅蓝1:白 2:黑 3:蓝 4:黄
        /// </summary>
        public enum EmCarPlateColor
        {
            LightBlue = 0,
            White = 1,
            Black = 2,
            Blue = 3,
            Yellow = 4
        }

        /// <summary>
        /// 车牌类型: 1–有牌车， 0-无牌车。
        /// </summary>
        public enum EmPlateType
        {
            NoCarPlate = 0,
            CarPlate = 1
        }

        /// <summary>
        /// 寻车 0-无车， 1-有车， 2- 无视频
        /// </summary>
        public enum EmFindCar
        {
            NoCar = 0,
            Car = 1,
            NoVedio = 2
        }

        /// <summary>
        /// 车位图片类型 1—jpg, 2-bmp
        /// </summary>
        public enum EmPictureType
        {
            jpg = 1,
            bmp = 2
        }

        /// <summary>
        /// 数据颜色 0：红色1：绿色2：黄色3: 自动
        /// </summary>
        public enum EmDataColor
        {
            Red = 0,
            Green = 1,
            Yellow = 2,
            Auto = 3
        }

        /// <summary>
        /// 箭头方向 
        /// 0-右边向右 1-右边向上 2-右边向左 3-右边向下
        /// 4-左边向右 5-左边向上 6-左边向左 7-左边向下
        /// </summary>
        public enum EmDirection
        {
            RightToRight = 0,
            RightToTop = 1,
            RightToLeft = 2,
            RightToBottom = 3,
            LeftToRight = 4,
            LeftToTop = 5,
            LeftToLeft = 6,
            LeftToBottom = 7
        }

        /// <summary>
        /// 0-引导屏 1-入口总屏
        /// </summary>
        public enum EmLedType
        {
            BootScreen = 0,
            EntranceTotalScreen = 1
        }

        /// <summary>
        /// 反向寻车查找类型 0-模糊查找 1-时间查找 2-车位查找 3-无牌车查找
        /// </summary>
        public enum EmReverseSearchType
        {
            LikeSearch = 0,
            TimeSearch = 1,
            ParkingSearch = 2,
            NoPlateSearch = 3
        }

        /// <summary>
        /// 车位引导-车位状态
        /// </summary>
        public enum emCarSpaceStatus
        {
            Free = 0,
            Occupy = 1,
            Exception = 2,
            Disable = 3
        }

        /// <summary>
        /// 车位引导-多语言
        /// </summary>
        public enum emLangange
        {
            CN = 0,
            TH = 1,
            EN = 2,
        }

        /// <summary>
        /// 结果状态枚举
        /// </summary>
        public enum emState
        {
            Succeed = 1,
            Failied = -1,
        }

        /// <summary>
        /// 编码枚举
        /// </summary>
        public enum emCode
        {
            /// <summary>
            /// 不匹配
            /// </summary>
            NotMatch = 1,

            /// <summary>
            /// 匹配成功
            /// </summary>
            Matched = 2,

            /// <summary>
            /// 数据被使用
            /// </summary>
            DataUsed = 3,

            /// <summary>
            /// 未知错误
            /// </summary>
            Unknown = 65535,
        }


        /// <summary>
        /// 通讯类型
        /// </summary>
        public enum emOptType
        {
            DB = 1,
            TCP = 2,
            UDP = 3,
            RS232 = 4,
            RS485 = 5,
            HttpPost = 6,
            HttpGet = 7,
        }

        /// <summary>
        /// 显示控制一体机LED显示屏类型枚举
        /// </summary>
        public enum EmControllerLedType
        {
            /// <summary>
            /// 16*32 屏类型
            /// </summary>
            Led_16_32 = 0,
            /// <summary>
            /// 32*64 屏类型
            /// </summary>
            Led_32_64 = 1,
            /// <summary>
            /// 32*128 屏类型（实际使用少，预留）
            /// </summary>
            Led_32_128 = 2,
            /// <summary>
            /// 64*128 屏类型
            /// </summary>
            Led_64_128 = 3
        }

        #endregion

    }
}